import { GlobalClass } from "../../../../com/mui/core/GlobalClass";
//class FishProcessBar
    
    export  class FishProcessBar /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            this._bmpBg = GlobalClass.getBitmap("FishProgressBg");
            this.addChild(this._bmpBg);
            this._bmpdOver = GlobalClass.getBitmapData("FishProgressOver");
            this._bmpd = this._bmpdOver.clone();
            this._bmp = new Object /* flash.display.Bitmap */(this._bmpd);
            this._bmp.y = 11;
            this._bmp.x = 22;
            this.addChild(this._bmp);
            return;
        }

        public setPercent(arg1: number): void
        {
            arg1 = arg1 < 0 ? 0 : arg1;
            arg1 = arg1 > 1 ? 1 : arg1;
            this._bmp.bitmapData = null;
            this._bmpd.dispose();
            if (arg1 > 0) 
            {
                this._bmpd = new Object /* flash.display.BitmapData */(arg1 * this._bmpdOver.width, this._bmpdOver.height, true, 16777215);
                this._bmpd.draw(this._bmpdOver, null, null, null, new Object /* flash.geom.Rectangle */(0, 0, arg1 * this._bmpdOver.width, this._bmpdOver.height));
                this._bmp.bitmapData = this._bmpd;
            }
            return;
        }

        /* internal */ /* var */_bmpBg: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_bmp: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_bmpd: Object /* flash.display.BitmapData */;

        /* internal */ /* var */_bmpdOver: Object /* flash.display.BitmapData */;
    }
